<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<c:set var="req" value="${pageContext.request}" />
<c:set var="uri" value="${req.requestURI}" />
<c:set var="url" value="${req.requestURL}" />
<c:set var="ln" value="${req.localName}" /> 
<c:set var="sn" value="${req.serverName}" /> 
<c:set var="port" value="${req.serverPort}" /> 

<%@ page session="false" %>
<html>
<head>
	<title>Home</title>
</head>
<body>
<h1>
	Hello world!  
</h1>

<P>  The time on the server is ${serverTime}. </P>

<p>uri is ${uri}</p>
<p>url is ${url}</p>
<p>local name is ${ln}</p>
<p>server name is ${sn}</p>
<p>port is ${port}</p>

<a href="http://${sn}:${port}/foo">foo</a>
</body>
</html>
